package com.qianyu.enumerate;

/**
 * 统一返回枚举
 *
 * @author hehao
 */

public enum ResultEnum {

    SUCCESS(0, "SUCCESS!", "成功!"),
    USER_REQUEST_WITHOUT_TOKEN(101,"ERROR!","用户请求无TOKEN！"),
    USER_TOKEN_NOT_USE(102,"ERROR!","TOKEN无效！"),
    VERSION_GET_ERROR(500,"ERROR!","版本获取错误！"),
    USER_LOGIN_NAME_HAS_EXIST(501,"ERROR!","登录名重复！"),
    VERSION_IS_EXIST(10000, "ERROR!", "该版本已存在!"),
    CITY_CONFIG_EXIST(10001, "ERROR!", "该版本城市配置已存在!"),
    CITY_CONFIG_NOT_EXIST(10002, "ERROR!", "该版本城市配置不存在!"),

    PROXY_EXCEPTION(10003, "ERROR!", "代理异常!"),

    CACHE_EXCEPTION(10004, "ERROR!", "缓存异常!"),

    NO_QQ_ACCOUNT_ABLE(10005,"ERROR","qq账号数据量不足！"),

    ACT_LINK_EXIST(10006,"ERROR","活动链接已存在，请勿重复添加"),

    USER_MONET_NOT_ENOUGH(10007, "ERROR!", "用户钱包不足!"),

    WALLET_ACCOUNT_EXIST(10008, "ERROR!", "收款账号已存在!"),

    USER_ID_IS_ABNORMAL(10009, "ERROR!", "用户角色不支持操作!"),

    USER_REQUEST_PARAMETER_ERROR(10010, "ERROR!", "请求参数错误!"),

    PASSWORD_LENGTH_IS_NOT_ENOUGH(121, "WARNING!", "密码长度不够!"),
    PASSWORD_IS_NOT_STRONG_ENOUGH(122, "WARNING!", "密码强度不够!"),
    USER_ACCOUNT_DOES_NOT_EXIST(123, "WARNING!", "用户账号不存在!"),

    USER_IDENTITY_VERIFICATION_FAILED(124, "WARNING!", "用户名或密码错误!"),

    USER_ACCOUNT_IS_FROZEN(125, "WARNING!", "账号被冻结!"),

    PASSWORD_VERIFICATION_FAILED(126, "WARNING!", "两次输入的密码不同!"),
    ACCOUNT_IS_IN_ORDER(127, "WARNING!", "账号已添加到回收单待审批!"),

    PASSWORD_IS_NOT_SUCCESS(128, "WARNING!", "登录密码错误，验证失败!"),
    CHECK_CODE_INPUT_ERROR(130, "WARNING!", "校验码输入错误!"),
    SMS_VERIFICATION_CODE_INPUT_ERROR(131, "WARNING!", "短信校验码输入错误!"),
    NOTIFICATION_SERVICE_ERROR(132, "ERROR!", "通知服务出错!"),
    USERNAME_NOT_MATCH(133, "ERROR!", "登录名参数有误，不符合正则（英文）表达式!"),
    SMS_REMINDER_SERVICE_FAILED(501, "ERROR!", "短信提醒服务失败!"),
    VOICE_REMINDER_SERVICE_FAILED(502, "ERROR!", "语音提醒服务失败!"),
    WAIT_AGENCY_AUDIT(503, "ERROR!", "待代理商审核!");

    private final Integer code;
    private final String msg;
    private final String msgTranslation;

    ResultEnum(Integer code, String msg, String msgTranslation) {
        this.code = code;
        this.msg = msg;
        this.msgTranslation = msgTranslation;
    }

    public String getMsgTranslation() {
        return msgTranslation;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}